package gsp420;

import java.awt.Image;

import javax.swing.JApplet;

public class GameApplet extends JApplet {
	private static final long serialVersionUID = 1L;
	GamePanel gp;
	public void init()
	{
		gp = GamePanel.getInstance();
		try{
			Image img = null;
			img = getImage(getCodeBase(), "./img.png");
			gp.setImage(img);
		}catch(Exception e){
			e.printStackTrace();
		}
		add(gp);
		// this *should* be redundant
		gp.requestFocus();
		addKeyListener(gp);
	}
}
